package com.jeeplus.mob.mapper;

import com.jeeplus.mob.entity.mobpojo.BuildingInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BuildingInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BuildingInfo record);

    int insertSelective(BuildingInfo record);

    BuildingInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BuildingInfo record);

    int updateByPrimaryKey(BuildingInfo record);

    List<BuildingInfo> selectAllBuildingInfo(Map<String,Object> map);

    List<BuildingInfo> getBuildingCountVisitsNumber(Map<String,Object> map);

    int queryAllBuildingInfoByLikeCount(Map<String,Object> map);

    List<BuildingInfo> queryAllBuildingInfoByLike(Map<String,Object> map);

    String getAllRegionInfomation();

    List<Map<String,Object>> getAllBuildingStatus();
}